#ifndef QREGSHAPE_H
#define QREGSHAPE_H

#include <QWidget>
#include "qbody.h"


class QRegShape : public QWidget, public QBody
{
    Q_OBJECT
    RegularShape *const shape;
protected:
    virtual void mouseDoubleClickEvent(QMouseEvent *);
public:
    explicit QRegShape(QWidget *parent = 0);

    virtual void paintEvent(QPaintEvent *);
    virtual void resizeEvent(QResizeEvent *);
    uchar sides() const;

signals:
    void dblClicked(RigidBody*);
public slots:
    void sides(int);

};

#endif // QREGSHAPE_H
